home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
SHOW_HEL
/
MAIN.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-12-27
|
961b
|
38 lines
#define BASE_RES_ID 128
#define BASE_PICT_ID 1000
#define REMOVE_ALL_EVENTS 0
#define NIL 0L
void ToolBoxInit( void );
void main( void );
/* ------------------------------------------------------------------ */
void main()
{
pascal void (*Show_help)( short help_dlog_id, StringPtr help_text_name,
short base_pict_id, StringPtr default_filename,
StringPtr default_menuname );
Handle help_CUST;
ToolBoxInit();
help_CUST = Get1NamedResource( 'CUST', "\pShow_help" );
HLock( help_CUST );
Show_help = (pascal void (*)(short, StringPtr, short, StringPtr, StringPtr))
StripAddress( *help_CUST );
(*Show_help)( BASE_RES_ID, "\phelp", BASE_PICT_ID,
"\pShow_help help", "\pTitle page");
}
/* ------------------------------------------------------------------ */
void ToolBoxInit()
{
InitGraf( &thePort );
InitFonts();
FlushEvents( everyEvent, REMOVE_ALL_EVENTS );
InitWindows();
InitMenus();
TEInit();
InitDialogs( NIL );
InitCursor();
}